#include <iostream>
#include <cmath>
#include <vector>
using namespace std;
 
int main()
{
    int a = 0;
    while(cin >> a)
    {
        cout << a << " = ";
        vector<int> arr;
        for(int i = 2; i <= sqrt(a); ++i)
        {
            while(a % i == 0)
            {
                // cout << i << " * ";
                arr.push_back(i);
                a /= i;
            }
        }
        if(a != 1) // 说明是素数
        {
            // cout << a << " * ";
            arr.push_back(a);
        }
        int sz = arr.size();
        for(int i = 0; i < sz; ++i)
        {
            cout << arr[i];
            if(i != sz - 1)
                cout << " * ";
        }
        cout << endl;
    }
 
    return 0;
}